import request from '@/utils/request'
//驾校资源列表
export function schoolResources(data) {
    return request({
      url: 'school/resources',
      method: 'get',
      params: data,
      headers: {
        showLoading: true
      }
    })
  }

//发现详情
export function schoolResourcesRead(data) {
    return request({
      url: 'school/resources/read',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }
//发现编辑
export function schoolResourcesUpdate(data) {
    return request({
      url: 'school/resources/update',
      method: 'put',
      data,
      headers: {
        showLoading: false
      }
    })
  }


//学校
export function university(data) {
  return request({
    url: 'school/university',
    method: 'get',
    params: data,
    headers: {
      showLoading: true
    }
  })
}
//新增
export function universityCreate(data) {
  return request({
    url: 'school/university/create',
    method: 'post',
    data,
    headers: {
      showLoading: false
    }
  })
}

//详情
export function universityRead(data) {
    return request({
      url: 'school/university/read',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }

//编辑
export function universityUpdate(data) {
  return request({
    url: 'school/university/update',
    method: 'put',
    data,
    headers: {
      showLoading: false
    }
  })
}
//删除
export function universityDelete(data) {
  return request({
    url: 'school/university/delete',
    method: 'delete',
    data,
    headers: {
      showLoading: false
    }
  })
}

//报名点
export function team(data) {
  return request({
    url: 'school/university/team',
    method: 'get',
    params: data,
    headers: {
      showLoading: true
    }
  })
}
//新增
export function teamCreate(data) {
  return request({
    url: 'school/university/team/create',
    method: 'post',
    data,
    headers: {
      showLoading: false
    }
  })
}

//详情
export function teamRead(data) {
    return request({
      url: 'school/university/team/read',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }

//编辑
export function teamUpdate(data) {
  return request({
    url: 'school/university/team/update',
    method: 'put',
    data,
    headers: {
      showLoading: false
    }
  })
}
//删除
export function teamDelete(data) {
  return request({
    url: 'school/university/team/delete',
    method: 'delete',
    data,
    headers: {
      showLoading: false
    }
  })
}
//选项
export function universityOption(data) {
  return request({
    url: 'school/university/option',
    method: 'get',
    params:data,
    headers: {
      showLoading: false
    }
  })
}
//跟进
export function followrecord(data) {
  return request({
    url: 'followrecord',
    method: 'get',
    params:data,
    headers: {
      showLoading: true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//跟进
export function followrecordCreate(data) {
  return request({
    url: 'followrecord/create',
    method: 'post',
    data,
    headers: {
      showLoading: false,
     
    }
  })
}
//联系人选项
export function contactsOption(data) {
  return request({
    url: 'contacts/option',
    method: 'get',
    params:data,
    headers: {
      showLoading: false,
     
    }
  })
}

